<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>意见新增 - 学生意见管理系统</title>
    <div th:replace="~{include/all_include::title}"/>
</head>
<body>
<div th:replace="~{include/all_include::header}"/>
<div class="container">
    <div class="row">
        <div class="col-sm-8 col-sm-offset-1 main">
            <h2 class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">意见新增</h2>

            <form id="form" class="form-horizontal" th:action="@{/head/opinionDesc/addSubmit}" method="post">
                <input type="hidden" name="operType" value="update">
                <input type="hidden" name="parentId" value="0">
                <div class="form-group">
                    <label for="typeId" class="col-sm-2 control-label">意见类型:</label>
                    <div class="col-sm-8">
                        <span>
                            <select id="typeId" name="typeId" class="form-control">
                                <option th:each="type,typeStat:${opinionTypeList.data.list}" th:value="${type.id}"
                                        th:text="${type.name}"></option>
                            </select>
                        </span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="name" class="col-sm-2 control-label">标题:</label>
                    <div class="col-sm-8">
                        <input type="text" id="name" name="name" value="" class="form-control" placeholder="标题">
                    </div>
                </div>
                <div class="form-group">
                    <label for="status" class="col-sm-2 control-label">状态:</label>
                    <div class="col-sm-8">
                        <!--<input type="text" class="sr-only" name="status" id="status" value="0">-->
                        <span>
                            <select id="status" name="status" class="form-control">
                                <option value="0">草稿</option>
                                <option value="1">已发布</option>
                            </select>
                        </span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="content" class="col-sm-2 control-label">内容:</label>
                    <div class="col-sm-8">
                        <textarea rows="5" cols="80" id="content" name="content" class="form-control"></textarea>
                    </div>
                </div>
                <!--<div class="form-group">
                    <label for="address" class="col-sm-2 control-label">头像:</label>
                    <div class="col-sm-8">
                        &lt;!&ndash;dom结构部分&ndash;&gt;
                        <div id="uploader-demo">
                            &lt;!&ndash;用来存放item&ndash;&gt;
                            <div id="fileList" class="uploader-list"></div>
                            <div id="filePicker">选择图片</div>
                        </div>
                    </div>
                </div>-->
                <div class="form-group">
                    <div class="col-sm-8 col-sm-offset-2">
                        <button class="btn btn-lg btn-primary" type="submit">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<div th:replace="~{include/all_include::footer}"/>
</body>
</html>